package proxy;import java.rmi.Naming;/** * Created by Administrator on 2018-11-5. */public class GumballMachineTest {    public static void main(String[] args) {      GumballMachineRemote gumballMachine =null;      int count ;        try {            count =50;            gumballMachine =new GumballMachine("first machine",50);            Naming.rebind("first machine",gumballMachine);        }catch (Exception e){             e.printStackTrace();        }    }}